package com.quatrix.openphantasy.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.ClickListener;
import com.google.gwt.user.client.ui.DialogBox;
import com.google.gwt.user.client.ui.Image;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.Widget;
import com.quatrix.openphantasy.client.datasource.CountryDS;
import com.quatrix.openphantasy.client.datasource.TeamDS;
import com.quatrix.openphantasy.client.ui.CRUDView;
import com.quatrix.openphantasy.client.ui.CountryView;
import com.quatrix.openphantasy.client.ui.SeasonSetupWindow;
import com.smartgwt.client.data.DataSource;
import com.smartgwt.client.widgets.Window;

/**
 * Entry point classes define <code>onModuleLoad()</code>.
 */
public class OpenPhantasy implements EntryPoint {

  /**
   * This is the entry point method.
   */
  public void onModuleLoad() {
	  DataSource ds = TeamDS.getInstance();
//	  CountryView cv = CountryView.createWidget();
//	  cv.setDataSource(CountryDS.getInstance());
//	  CRUDView cv = CRUDView.createWidget(ds);
//	  cv.setWidth100();
//	  cv.setHeight100();
//	  RootPanel.get().add(cv);
	  Window wnd = SeasonSetupWindow.createWidget();
	  wnd.show();
  }
}
